﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using Sita.Entities.MetaData.CustomAttributes;

namespace Sita.Entities.MetaData
{
    public class ReplacementBrand
    {
        [ScaffoldColumn(false)]
        public object BrandID { get; set; }

        [ScaffoldColumn(false)]
        public object BusinessUnitID { get; set; }

        [Required(ErrorMessageResourceType = typeof(Resources.ReplacementBrand), ErrorMessageResourceName = "NameRequired")]
        [LocalizedDisplayName("Name", ResourceType = typeof(Resources.ReplacementBrand))]
        [StringLength(50, ErrorMessageResourceType = typeof(Resources.ReplacementBrand), ErrorMessageResourceName = "NameMaxLength")]
        [DataType(DataType.Text)]
        public object BrandName { get; set; }

        [LocalizedDisplayName("Description", ResourceType = typeof(Resources.ReplacementBrand))]
        [StringLength(100, ErrorMessageResourceType = typeof(Resources.ReplacementBrand), ErrorMessageResourceName = "DescriptionMaxLength")]
        [DataType(DataType.Text)]
        public object BrandDescription { get; set; }
    }
}
